package com.ruoyi.kong.service;

import com.ruoyi.kong.entity.KongEntity;
import com.ruoyi.kong.entity.KongPlugin;
import com.ruoyi.kong.entity.KongPluginVo;

import java.util.Map;

public interface IKongPluginInfoService {

    KongEntity<KongPlugin> plugins();

    KongPlugin pluginById(String id);


    KongEntity<KongPlugin> pluginsByRouteId(String routeId);


    KongEntity<KongPlugin> pluginsByServiceId(String serviceId);

    Map pluginSchemaByName(String name);

    KongEntity<KongPlugin> addPlugin(KongPlugin kongPlugin);

    void deletePlugin(String id);

    KongPlugin updatePlugin(String id, KongPluginVo plugin);

}
